package com.cw.recommend.common

package object constant {

  val SERVER_HOST = "hadoop02"

  val PRODUCT_DATA_PATH = "recommend-system-dataLoader/target/classes/products.csv"
  val RATING_DATA_PATH = "recommend-system-dataLoader/target/classes/ratings.csv"
  val PRODUCT_COLLECTION = "Product"
  val RATING_COLLECTION = "Rating"
  val USER_COLLECTION = "User"

  val PRODUCT_POPULARITY = "ProductPopularity" // 累积评价数
  val PRODUCT_HISTORY_POPULARITY = "ProductHistoryPopularity" // 历史评价数，按年月分组
  val PRODUCT_AVG_SCORE = "ProductAvgScore" // 平均评价
  val RECOMMEND_LIST = "RecommendList" // 离线推荐列表
  val PRODUCT_SIM_LIST = "ProductSimList" // 物品相似度列表
  val REALTIME_RECOMMEND_LIST = "RealtimeRecommendList" // 实时推荐列表
  val CONTENT_BASED_PRODUCT_SIM_LIST = "ContentBasedProductSimList" // 基于内容的物品相似度列表
  val ITEM_CF_RECOMMEND_LIST = "ItemCfRecommendList"
  val MONGODB_URI = s"mongodb://$SERVER_HOST:27017/recommender"
  val MONGODB_DB = "recommender"
  val MONGODB_DATA_SOURCE = "com.mongodb.spark.sql"

  val SPARK_MASTER = "local[*]"

  val RECOMMEND_NUM = 5 // 推荐物品数

  val RECENTLY_NUM = 5 // redis最近评分数
  val MAX_CANDIDATE_NUM = 5

  val MAX_SIM_ITEM_NUM = 10

  val MODEL_PATH = "./model"

  val RECOMMENDER_TOPIC = "recommender"
  val LOG_TOPIC = "log"

  val KAFKA_BROKERS = s"$SERVER_HOST:9092"

  val ZOO_KEEPERS = s"$SERVER_HOST:2181"


}
